const state={
    id:'',
    title:'',
    body:'',
    username:'',
    createat:''
}
const mutations={
    updated(state,obj){
        state.id=obj.id;
        state.title=obj.title;
        state.body=obj.body;
        state.username=obj.username;
        state.createAt=obj.createAt;
        console.log(state);
    }
}
const actions={

}
const getters={

}
export default {
    state,
    getters,
    actions,
    mutations
}